import requests


class SendGet:
    def __init__(self, eid):
        self.url = 'http://127.0.0.1:8000/api/get_event_list/?eid=%s' % eid

    def send(self):
        r = requests.get(self.url)
        j = r.json()
        statuscode = r.status_code
        msg = j['message']
        status = j['status']
        return statuscode, msg, status


if __name__ == '__main__':
    s = SendGet(22000000)
    statuscode, msg, status = s.send()
    print(statuscode, msg, status)
    print(type(s.send()))
